{{ partial "header.html" . }}

  {{/* $reAltIn := "<img src=\"([^\"]+)\" alt=\"([^\"]*)\" />" }}
  {{ $reAltOut := "<a class=\"fancya\" data-fancybox=\"gallery\" href=\"$1\"><img src=\"$1\" alt=\"$2\"></a>" }}
  {{ $altContent := .Content | replaceRE $reAltIn $reAltOut | safeHTML }}

  {{ $reAltTitleIn := "<img src=\"([^\"]+)\" alt=\"([^\"]+)\" title=\"([^\"]+)\" />" }}
  {{ $reAltTitleOut := "<a class=\"fancya\" data-fancybox=\"gallery\" href=\"$1\"><img src=\"$1\" alt=\"$2\" title=\"$3\"></a>" }}
  {{ $finalContent := $altContent | replaceRE $reAltTitleIn $reAltTitleOut | safeHTML */}}

  <link href="/search/pagefind-ui.css" rel="stylesheet">
  <script src="/search/pagefind-ui.js" type="text/javascript"></script>
 
  <div id="search"></div>
  <script>
    window.addEventListener('DOMContentLoaded', (event) => {
        new PagefindUI({ element: "#search" });
    });
  </script>

{{ partial "footer.html" . }}
